<?php
// ====================================================
// filename:wl005_display.php
// summary: 用户详情画面_更新处理
// ====================================================
require_once ("../init.php");
php_handle();

// 详细业务处理
function php_handle()
{
    // ======参数验证======
    $uid = $_SESSION['wl_uid'];
    $usertel = $_POST["usertel"];
    $username = $_POST["username"];
    $remark = $_POST["remark"];
    
    // ======业务处理======
    $u02upd = array();
    $u02upd["user_id"] = $uid;
    $u02upd["user_tel"] = $usertel;
    $u02upd["user_name"] = $username;
    $u02upd["user_remark"] = $remark;
    
    $wlu02 = new wlu02tbx();
    $u02rec = $wlu02->update($uid, $u02upd);
    if ($u02rec == 0) {
        echo json_encode(array(
            'success' => false,
            'msg' => "基本资料更新失败！"
        ));
        return;
    }
    
    // ======结果返回======
    echo json_encode(array(
        'success' => true
    ));
    return;
}

?>